//
//  FWIconTextButton.h
//  iOSToolkit
//
//  Created by Evan Xie on 5/26/15.
//  Copyright (c) 2015 Family Wings. All rights reserved.
//


typedef NS_ENUM(NSUInteger, AlignmentType) {
    AlignmentTypeCenter = 1,
    AlignmentTypeEnds
};

typedef NS_ENUM(NSUInteger, PositionType) {
    PositionTypeIconFirstTextLast = 1,
    PositionTypeTextFirstIconLast
};

typedef NS_ENUM(NSUInteger, DirectionType) {
    DirectionTypeHorinzontal = 1,
    DirectionTypeVertical
};

@interface FWIconTextButton : UIButton

+ (instancetype)buttonWithIcon:(UIImage *)iconImage andText:(NSString *)text frame:(CGRect)frame;
- (instancetype)initWithIcon:(UIImage *)iconImage andText:(NSString *)text frame:(CGRect)frame;

- (void)setIconImage:(UIImage *)iconImage andText:(NSString *)text;
- (void)setTextColor:(UIColor *)textColor textFont:(UIFont *)textFont;

/**
 Default value is:
 
 directionType          DirectionTypeHorinzontal
 alignmentType          AlignmentTypeCenter
 iconTextPositionType   PositionTypeIconFirstTextLast
 */
- (void)setDirectionType:(DirectionType)directionType
           alignmentType:(AlignmentType)alignmentType
         andPositionType:(PositionType)iconTextPositionType;

@end
